package tech.mhuang.pacebox.springboot.wechat.wechat.common.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import tech.mhuang.pacebox.springboot.wechat.wechat.common.consts.WechatConsts;

import java.io.Serializable;

@Data
public class WechatTokenReturn implements Serializable {

    @JSONField(name = WechatConsts.ERROR_CODE)
    @JsonProperty(value = WechatConsts.ERROR_CODE)
    private int errcode;

    @JSONField(name = WechatConsts.ERROR_MSG)
    @JsonProperty(value = WechatConsts.ERROR_MSG)
    private String errmsg;

    @JSONField(name = WechatConsts.ACCESS_TOKEN_FIELD)
    @JsonProperty(value = WechatConsts.ACCESS_TOKEN_FIELD)
    private String accessToken;

    @JSONField(name = WechatConsts.EXPIRES_IN)
    @JsonProperty(value = WechatConsts.EXPIRES_IN)
    private String expiresIn;
}
